import { DtoValidation } from '@/modules/core/decorators/dto-validation.decorator';
import { Injectable } from '@nestjs/common';
import { CreateCartDto } from './create_cart.dto';
import { IsNotEmpty } from 'class-validator';

@Injectable()
@DtoValidation({ type: 'body', groups: ['update'] })
export class MutilUpdateCart extends CreateCartDto {
  @IsNotEmpty({ message: '购物车id不能为空', always: true })
  id: string;
}
